package com.wl.center.model.state;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName customer
 */
@TableName(value ="customer")
@Data
public class Customer implements  Serializable{
    /**
     * 
     */
    @TableField("id")
    private Integer id;

    /**
     * 
     */
    @TableField("name")
    private String name;

    /**
     * 
     */
    @TableField("phone")
    private String phone;

    /**
     *
     */
//    @TableField("signFlowId")
//    private String signFlowId;

    /**
     * 
     */
    @TableField("createTime")
    private Date createtime;

    /**
     * 
     */
    @TableField("pre_time")
    private Date preTime;

    /**
     * 
     */
    @TableField("city")
    private String city;

    /**
     * 
     */
    @TableField("wechat")
    private String wechat;

    /**
     * 
     */
    @TableField("seller_id")
    private Integer sellerId;

    /**
     * 0 已报名
1 未报名
     */
    @TableField("enroll_status")
    private Integer enrollStatus;

    /**
     * 
     */
    @TableField("to_country")
    private String toCountry;

    /**
     * 0 已签约
1 未签约
     */
    @TableField("sign_status")
    private Integer signStatus;

    /**
     * 0 无效
1 有效
     */
    @TableField("status")
    private Integer status;

    /**
     * 0 已付定金
1 未付定金
     */
    @TableField("money_status")
    private Integer moneyStatus;

    /**
     * 
     */
    @TableField("Pay")
    private String pay;

    /**
     * 
     */
    @TableField("Type_id")
    private Integer typeId;

    /**
     * 
     */
    @TableField("Level_id")
    private Integer levelId;

    /**
     * 
     */
    @TableField("Country_id")
    private Integer countryId;

    /**
     * 
     */
    @TableField("Project_id")
    private Integer projectId;

    /**
     * 
     */
    @TableField("Agent_id")
    private Integer agentId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Customer other = (Customer) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
           // && (this.getSignFlowId() == null ? other.getSignFlowId() == null : this.getSignFlowId().equals(other.getSignFlowId()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getPreTime() == null ? other.getPreTime() == null : this.getPreTime().equals(other.getPreTime()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getWechat() == null ? other.getWechat() == null : this.getWechat().equals(other.getWechat()))
            && (this.getSellerId() == null ? other.getSellerId() == null : this.getSellerId().equals(other.getSellerId()))
            && (this.getEnrollStatus() == null ? other.getEnrollStatus() == null : this.getEnrollStatus().equals(other.getEnrollStatus()))
            && (this.getToCountry() == null ? other.getToCountry() == null : this.getToCountry().equals(other.getToCountry()))
            && (this.getSignStatus() == null ? other.getSignStatus() == null : this.getSignStatus().equals(other.getSignStatus()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getMoneyStatus() == null ? other.getMoneyStatus() == null : this.getMoneyStatus().equals(other.getMoneyStatus()))
            && (this.getPay() == null ? other.getPay() == null : this.getPay().equals(other.getPay()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getLevelId() == null ? other.getLevelId() == null : this.getLevelId().equals(other.getLevelId()))
            && (this.getCountryId() == null ? other.getCountryId() == null : this.getCountryId().equals(other.getCountryId()))
            && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
            && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
      //  result = prime * result + ((getSignFlowId() == null) ? 0 : getSignFlowId().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getPreTime() == null) ? 0 : getPreTime().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getWechat() == null) ? 0 : getWechat().hashCode());
        result = prime * result + ((getSellerId() == null) ? 0 : getSellerId().hashCode());
        result = prime * result + ((getEnrollStatus() == null) ? 0 : getEnrollStatus().hashCode());
        result = prime * result + ((getToCountry() == null) ? 0 : getToCountry().hashCode());
        result = prime * result + ((getSignStatus() == null) ? 0 : getSignStatus().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getMoneyStatus() == null) ? 0 : getMoneyStatus().hashCode());
        result = prime * result + ((getPay() == null) ? 0 : getPay().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getLevelId() == null) ? 0 : getLevelId().hashCode());
        result = prime * result + ((getCountryId() == null) ? 0 : getCountryId().hashCode());
        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
        result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", phone=").append(phone);
       // sb.append(", signFlowId").append(signFlowId);
        sb.append(", createtime=").append(createtime);
        sb.append(", preTime=").append(preTime);
        sb.append(", city=").append(city);
        sb.append(", wechat=").append(wechat);
        sb.append(", sellerId=").append(sellerId);
        sb.append(", enrollStatus=").append(enrollStatus);
        sb.append(", toCountry=").append(toCountry);
        sb.append(", signStatus=").append(signStatus);
        sb.append(", status=").append(status);
        sb.append(", moneyStatus=").append(moneyStatus);
        sb.append(", pay=").append(pay);
        sb.append(", typeId=").append(typeId);
        sb.append(", levelId=").append(levelId);
        sb.append(", countryId=").append(countryId);
        sb.append(", projectId=").append(projectId);
        sb.append(", agentId=").append(agentId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}